import 'package:flutter/material.dart';

class SizedOverflowBoxExample extends StatefulWidget {
  const SizedOverflowBoxExample({Key? key}) : super(key: key);

  @override
  State<SizedOverflowBoxExample> createState() =>
      _SizedOverflowBoxExampleState();
}

class _SizedOverflowBoxExampleState extends State<SizedOverflowBoxExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('SizedOverflowBoxExample'),
      ),
      body: Container(
        color: Colors.pink,
        // width: 200,
        // height: 200,
        padding: EdgeInsets.all(5.0),
        child: SizedOverflowBox(
          size: Size(200.0, 200.0),
          child: Container(
            color: Colors.blueAccent,
            width: 300.0,
            height: 100.0,
          ),
        ),
      ),
    );
  }
}
